package edu.sctu.practice.class02.qiuyangyang.text12;

/**
 * Created by Administrator on 2015/10/12 0012.
 */
public class Automobile {
    int number;
    String color;
    int weight;


    public Automobile(int number, String color, int weight) {
        this.number = number;
        this.color = color;
        this.weight = weight;


    }

    public void print() {
        System.out.println("轮胎个数：" + number + "个");
        System.out.println("颜色：" + color);
        System.out.println("重量：" + weight + "t");
    }

    public void speedUp() {
        System.out.println("车辆加速");
    }

    public void speedDown() {
        System.out.println("车辆减速");
    }

    public void park() {
        System.out.println("车辆停止");
    }


}
